/*
 *  ACamera.cpp
 *  Amano Engine
 *
 *  Created by Aurelien Serandour on 13/03/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include "../include/ACamera.h"
#include "OpenGL/gl.h"
#include "OpenGL/glu.h"

using namespace Amano;

ACamera::ACamera()
{
	/*m_position = new float[3];
	m_direction = new float[3];
	m_target = new float[3];
	m_up = new float[3];*/
}

ACamera::~ACamera()
{
	/*delete[] m_position;
	delete[] m_direction;
	delete[] m_target;
	delete[] m_up;*/
}

void ACamera::use()
{
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluLookAt(m_position[0], m_position[1], m_position[2], m_target[0], m_target[1], m_target[2], m_up[0], m_up[1], m_up[2]);
}